<div class="user_main">
   <div class="user_main_title">Hệ thống site - <?=$link_system->name?></div>
   <div class="user_main_main">
      <table class="table table-bordered table-hover">
         <tr>
            <th>STT</th>
            <th>Tên site</th>
            <th>Tuổi site</th>
            <th>Page rank</th>
            <th>Active</th>
         </tr>
         <?php
         $i = 0;
         foreach($links as $link) {
            $i++;
            $arr = array('service'=>$link['lin_title'],'continue'=>$link['lin_link']);
            $arr =json_encode($arr);
            $arr = base64_encode($arr);
            $link_log = 'http://id.sudo.vn/dang-nhap/oauth/xenforo?token='.$arr.'';
            ?>
            <tr>
               <td><?=$i?></td>
               <td><a href="<?=$link_log?>" target="_blank"><?=$link['lin_title']?></a></td>
               <td><?=$link['lin_age']?></td>
               <td><?=$link['lin_pr']?></td>
               <td><?=$link['lin_active']?></td>
            </tr>
            <?
         }
         ?>
      </table>
   </div>
</div><!-- user_main -->
<div class="clear"></div>